package org.jetlinks.community.protocol.event;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.hswebframework.web.event.DefaultAsyncEvent;
import org.jetlinks.supports.protocol.management.ProtocolSupportDefinition;

@AllArgsConstructor(staticName = "of")
@Getter
public class ProtocolChangeEvent extends DefaultAsyncEvent {

    private final ProtocolSupportDefinition definition;

    @Override
    public String toString() {
        return "ProtocolChangeEvent<" + definition.getId() + ">"+definition;
    }

}
